import request from "../utils"

export let updatePassword = (userid: any, oldpassword: string, newpassword: string) => {
    return request({
        url: "/api/user/updatePassword",
        method: "GET",
        params: {
            userid, oldpassword, newpassword
        }
    })
}

export let info = (userid: any) => {
    return request({
        url: "/api/user/info",
        method: "GET",
        params: {
            userid
        }
    })
}

export let bindusername = (userid: any,username:string) => {
    return request({
        url: "/api/user/bindusername",
        method: "GET",
        params: {
            userid,username
        }
    })
}